<template>
  <div>
   <ul>
    <li v-for="item in arrayList" :key='item.index'>{{item.value}}</li>
    <li v-if="cor">
      <router-link to="http://ww.baidu.com">d</router-link>
    </li>
   </ul>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: 'example',
  data () {
    return {
      cor: false,
      arrayList: [],
      swiperList: ['755', '769', '731', '739']
    }
  },
  mounted () {
    this.getInfo()
  },
  methods: {
    getInfo () {
      var that = this
      for (var i in that.swiperList) {
        var a = {}
        a.index = i
        a.value = that.swiperList[i]
        that.arrayList.push(a)
      }
    }
  }
}
</script>

<style lang="stylus" scoped>
</style>
